docs: canister optimization guide#93
Conversation
Review: Canister OptimizationMust fix
Suggestions
Verified
|
- Correct Cargo.toml attribution: only lto and opt-level=3 are from the SIMD example; codegen-units=1 is described as additional advice - Add note that motoko/low_wasm_memory upstream example uses mo:base; direct readers to inline snippet for mo:core-compatible code - Update on_low_wasm_memory import to use canonical ic_cdk re-export - Improve instruction_counter() description: "since the last entry point" is more precise than "since the start of the current message" - Add note clarifying --incremental-gc args is redundant for new projects using enhanced orthogonal persistence (the current default) - Clarify wasm_memory_threshold trigger: "Wasm heap memory in use" instead of ambiguous "memory usage"
|
<!-- feedback-addressed --> Changes appliedMust fix
Suggestions applied
Items skippedNone — all feedback items were factually correct and improve the page. |
Summary
Sync recommendation
informed by dfinity/icp-cli-recipes — recipes/rust, recipes/motoko; dfinity/cdk-rs — ic-cdk/src/api.rs